.class public Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;
.super Llt/noframe/gpsfarmguide/views/BaseActivity;
.source "GooglePlayServicesActivity.java"


# instance fields
.field actionButton:Landroid/widget/Button;

.field private errorCode:I

.field errorText:Landroid/widget/TextView;

.field exit:Landroid/view/View$OnClickListener;

.field private googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

.field onClickListener:Landroid/view/View$OnClickListener;

.field title:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 24
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/views/BaseActivity;-><init>()V

    const/4 v0, -0x1

    .line 28
    iput v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    .line 93
    new-instance v0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity$1;-><init>(Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->onClickListener:Landroid/view/View$OnClickListener;

    .line 111
    new-instance v0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity$2;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity$2;-><init>(Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->exit:Landroid/view/View$OnClickListener;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;)I
    .locals 0

    .line 24
    iget p0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    return p0
.end method

.method static synthetic access$100(Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;)Lcom/google/android/gms/common/GoogleApiAvailability;
    .locals 0

    .line 24
    iget-object p0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    return-object p0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    .line 133
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/FragmentActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/4 p3, -0x1

    if-ne p2, p3, :cond_0

    const/4 p2, 0x5

    if-ne p1, p2, :cond_0

    .line 135
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    invoke-virtual {p1, p0}, Lcom/google/android/gms/common/GoogleApiAvailability;->isGooglePlayServicesAvailable(Landroid/content/Context;)I

    move-result p1

    iput p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    .line 136
    iget p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    if-nez p1, :cond_0

    .line 137
    new-instance p1, Landroid/content/Intent;

    const-class p2, Llt/noframe/gpsfarmguide/views/SplashActivity;

    invoke-direct {p1, p0, p2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const p2, 0x14008000

    .line 138
    invoke-virtual {p1, p2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 139
    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    const p1, 0x7f010027

    .line 140
    invoke-virtual {p0, p1, p1}, Landroid/app/Activity;->overridePendingTransition(II)V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6

    .line 36
    invoke-super {p0, p1}, Llt/noframe/gpsfarmguide/views/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const p1, 0x7f0c0025

    .line 37
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->setContentView(I)V

    .line 38
    invoke-static {p0}, Llt/noframe/gpsfarmguide/App;->setContext(Landroid/content/Context;)V

    .line 39
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getTracker()Lcom/google/android/gms/analytics/Tracker;

    const p1, 0x7f09025e

    .line 40
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    const p1, 0x7f090100

    .line 41
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    const p1, 0x7f090034

    .line 42
    invoke-virtual {p0, p1}, Landroidx/appcompat/app/AppCompatActivity;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/Button;

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    .line 45
    invoke-static {}, Lcom/google/android/gms/common/GoogleApiAvailability;->getInstance()Lcom/google/android/gms/common/GoogleApiAvailability;

    move-result-object p1

    iput-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    .line 46
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    invoke-virtual {p1, p0}, Lcom/google/android/gms/common/GoogleApiAvailability;->isGooglePlayServicesAvailable(Landroid/content/Context;)I

    move-result p1

    iput p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    .line 47
    iget p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    if-eqz p1, :cond_5

    const/4 v0, 0x2

    const v1, 0x7f110029

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-ne p1, v0, :cond_0

    .line 50
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    const v0, 0x7f11008d

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 51
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    const v0, 0x7f11008c

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    invoke-virtual {p0, v0, v3}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 52
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    const v0, 0x7f11008b

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 53
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_0
    if-ne p1, v3, :cond_1

    .line 55
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    const v0, 0x7f110086

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 56
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    const v0, 0x7f110085

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    invoke-virtual {p0, v0, v3}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 57
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    const v0, 0x7f110084

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 58
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_1
    const/4 v0, 0x3

    if-ne p1, v0, :cond_2

    .line 60
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    const v0, 0x7f110083

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 61
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    const v0, 0x7f110082

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    invoke-virtual {p0, v0, v3}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 62
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    const v0, 0x7f110081

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 63
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto/16 :goto_0

    :cond_2
    const/16 v0, 0x9

    const v4, 0x7f11003e

    const v5, 0x7f11003d

    if-ne p1, v0, :cond_3

    .line 65
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    invoke-virtual {p0, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 66
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    const v0, 0x7f11008a

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {p0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v2

    invoke-virtual {p0, v0, v3}, Landroid/app/Activity;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 67
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 68
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->exit:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 71
    :cond_3
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    invoke-virtual {v0, p1}, Lcom/google/android/gms/common/GoogleApiAvailability;->isUserResolvableError(I)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 72
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->onClickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 73
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    invoke-virtual {p0, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 74
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    iget v1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    invoke-virtual {v0, v1}, Lcom/google/android/gms/common/GoogleApiAvailability;->getErrorString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 75
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    const v0, 0x7f1101ef

    invoke-virtual {p0, v0}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 77
    :cond_4
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->title:Landroid/widget/TextView;

    invoke-virtual {p0, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 78
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorText:Landroid/widget/TextView;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    iget v1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    invoke-virtual {v0, v1}, Lcom/google/android/gms/common/GoogleApiAvailability;->getErrorString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 79
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    invoke-virtual {p0, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 80
    iget-object p1, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->actionButton:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->exit:Landroid/view/View$OnClickListener;

    invoke-virtual {p1, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    goto :goto_0

    .line 85
    :cond_5
    new-instance p1, Landroid/content/Intent;

    const-class v0, Llt/noframe/gpsfarmguide/views/SplashActivity;

    invoke-direct {p1, p0, v0}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const v0, 0x14008000

    .line 86
    invoke-virtual {p1, v0}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 87
    invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    const p1, 0x7f010027

    .line 88
    invoke-virtual {p0, p1, p1}, Landroid/app/Activity;->overridePendingTransition(II)V

    :goto_0
    return-void
.end method

.method protected onResume()V
    .locals 2

    .line 121
    invoke-super {p0}, Landroidx/fragment/app/FragmentActivity;->onResume()V

    .line 122
    iget-object v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->googleApiAvailability:Lcom/google/android/gms/common/GoogleApiAvailability;

    invoke-virtual {v0, p0}, Lcom/google/android/gms/common/GoogleApiAvailability;->isGooglePlayServicesAvailable(Landroid/content/Context;)I

    move-result v0

    iput v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    .line 123
    iget v0, p0, Llt/noframe/gpsfarmguide/views/GooglePlayServicesActivity;->errorCode:I

    if-nez v0, :cond_0

    .line 124
    new-instance v0, Landroid/content/Intent;

    const-class v1, Llt/noframe/gpsfarmguide/views/SplashActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const v1, 0x14008000

    .line 125
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 126
    invoke-virtual {p0, v0}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f010027

    .line 127
    invoke-virtual {p0, v0, v0}, Landroid/app/Activity;->overridePendingTransition(II)V

    :cond_0
    return-void
.end method
